home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / owldlgs.zip / DLGNONMD.RC < prev    next >
Text File  |  1993-04-08  |  1KB  |  34 lines

  1. /*******************************************/
  2. /* Dlgnonmd.rc defines two dialog boxes    */
  3. /* and a menu for the main dialog box      */
  4. /* note the visible qualifier on the       */
  5. /* non-modal dialog box. It must be        */
  6. /* in order to see the dialog when it is   */
  7. /* created.                                */
  8. /*******************************************/
  9.  
  10. #include "windows.h"
  11. #include "dlgnonmd.h"
  12.  
  13. MAINDIALOGMENU MENU
  14. BEGIN
  15.     MENUITEM "Non_Modal Dialog", IDM_NON_MODAL_DIALOG
  16. END
  17.  
  18. Main_Window_Dialog DIALOG 4, 27, 190, 50
  19. CAPTION "Main Window Dialog"
  20. MENU MAINDIALOGMENU
  21. STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
  22. BEGIN
  23.     PUSHBUTTON "Non-Modal Dialog", IDB_NON_MODAL_DIALOG, 12, 12, 78, 20, WS_CHILD | WS_VISIBLE | WS_TABSTOP
  24.     DEFPUSHBUTTON "Close", IDCANCEL, 102, 12, 78, 20, WS_CHILD | WS_VISIBLE | WS_TABSTOP
  25. END
  26.  
  27. Non_Modal_Dialog_Box DIALOG 18, 18, 113, 60
  28. CAPTION "Non-Modal Dialog Box"
  29. STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  30. BEGIN
  31.     DEFPUSHBUTTON "Close", IDCANCEL, 30, 12, 54, 30, WS_CHILD | WS_VISIBLE | WS_TABSTOP
  32. END
  33.  
  34.